//
//  ZZFNetWorkCore.h
//  zhangzhongfo
//
//  Created by 瞿衡 on 17/2/9.
//  Copyright © 2017年 瞿衡. All rights reserved.
//

#import <Foundation/Foundation.h>

#define Post @"POST"
#define Get @"Get"




@interface BZNetWorkCore : NSObject


+ (void)requestByParam:(NSDictionary *)param
                   uri:(NSString *)uri
            httpMethod:(NSString *)httpMethod
           headerParam:(NSDictionary *)headerParam
               success:(void(^)(NSString *code , id responseObject))success
               failure:(void(^)(NSString *code,NSError *error))failure;


+ (BOOL)requestByParamSync:(NSDictionary *)param
                       uri:(NSString *)uri
                httpMethod:(NSString *)httpMethod
               headerParam:(NSDictionary *)headerParam
                  outError:(NSError *__autoreleasing *)outError;

@end
